//
//  Agreement_Vc.swift
//  MikerShop
//
//  Created by eme on 2016/11/23.
//  Copyright © 2016年 eme. All rights reserved.
//

/*
 owner:cy
 update:2016年11月23日16:52:37
 info: 显示协议信息
 */
import RxSwift
import Presentr
import UtilCore

class Agreement_Vc: Base_Vc {
    
    /****************************Storyboard UI设置区域****************************/
    
    @IBOutlet weak var close_Btn: UIButton!
    
    /*----------------------------   自定义属性区域    ----------------------------*/
    
    
    /****************************Storyboard 绑定方法区域****************************/
    
    
    
    /**************************** 以下是方法区域 ****************************/
    override func viewDidLoad() {
        super.viewDidLoad()
        
    }
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        
    }
    
    override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        
    }
    override func accessibilityPerformEscape() -> Bool {
        self.dismiss(animated: true, completion: nil)
        return true
    }
    /**
     界面基础设置
     */
    override func setupUI() {
        
        
    }
    /**
     app 主题 设置
     */
    override func setViewTheme(){
        
    }
    /**
     绑定到viewmodel 设置
     */
    override func bindToViewModel(){
        self.close_Btn.rx.tap.subscribe(onNext: { [unowned self] ( _ ) in
            self.dismiss(animated: true, completion: nil)
        }).disposed(by: disposeBag)
    }
}
